package com.chtw.oasystem.service;

import com.chtw.oasystem.bean.FullUserInfo;
import com.chtw.oasystem.bean.Users;
import com.chtw.oasystem.respBean.UserResp;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @author chtw
 * @date 2020-11-16 22:06
 */
public interface UsersService {
    boolean createUser(HttpSession session, Users users);
    boolean editUser(HttpSession session, Users users);
    FullUserInfo getUserByUserId(HttpSession session, String user_id);
    PageInfo<FullUserInfo> list(int page, int size, String search, String dept_id);
    boolean login(HttpSession session, String work_id, String password);
    boolean delete(HttpSession session, String userId);
    List<UserResp> all();
}
